﻿<UserControl x:Class="Skynet.RiaClient.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Regions="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition  Width="Auto"></ColumnDefinition>
            <ColumnDefinition  Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>

        <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}" Grid.Row="0" Grid.ColumnSpan="5">
            <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
                <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">                    
                    <TextBlock x:Name="ApplicationNameTextBlock" 
                               Style="{StaticResource ApplicationNameStyle}" 
                               Text="Skynet Library"/>
                </StackPanel>
            </Border>
            <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
                <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">
                    <HyperlinkButton x:Name="lbHome" Style="{StaticResource LinkStyle}" Content="home" Click="Link1_Click" />
                    <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>
                    <HyperlinkButton x:Name="lbExamCategories" Style="{StaticResource LinkStyle}" Content="Exam Categories" Click="lbExamCategories_Click"/>

                </StackPanel>
            </Border>
        </Grid>
        <ContentControl Name="LeftLateralRegion"                         
                        Regions:RegionManager.RegionName="LeftLateralRegion"
                        Grid.Row="2" Grid.Column="0">            
        </ContentControl>
        
        <sdk:GridSplitter Name="BodyRegionLeftSplit"                                        
                          Grid.Column="1"
                           Width="2"
                          Grid.Row="2" Background="LightBlue" >            
        </sdk:GridSplitter>

        <ContentControl Name="BodyRegion" 
                      Regions:RegionManager.RegionName="BodyRegion"
                      Grid.Column="2" Grid.Row="2"/>
        <sdk:GridSplitter Name="BodyRegionRightSplit" 
                          Width="2"                          
                          Grid.Column="3"
                          Grid.Row="2" > </sdk:GridSplitter>
        <ContentControl Name="RightLateralRegion"
                        Regions:RegionManager.RegionName="RightLateralRegion"
                        Grid.Column="4" 
                        Grid.Row="2">            
        </ContentControl>
    </Grid>
    
</UserControl>
